package com.dehui.traders.enums;

import com.dehui.traders.R;
import com.dehui.traders.ui.fragment.HomeFragment;
import com.dehui.traders.ui.fragment.InfomationFragment;
import com.dehui.traders.ui.fragment.MarketFragment;
import com.dehui.traders.ui.fragment.SystemFragment;

/**
 * Created by hqq on 18.3.30.
 */

public enum MainTab {

    HOME(0, R.string.main_tab_home, R.mipmap.ic_launcher, HomeFragment.class),
    MARKET(1, R.string.main_tab_market, R.mipmap.ic_launcher, MarketFragment.class),
    INFOMATION(2, R.string.main_tab_infomation, R.mipmap.ic_launcher, InfomationFragment.class),
    SYSTEM(3, R.string.main_tab_system, R.mipmap.ic_launcher, SystemFragment.class);

    public int idx;
    public int resName;
    public int resIcon;
    public Class<?> clz;

    MainTab(int idx, int resName, int resIcon, Class<?> clz) {
        this.idx = idx;
        this.resName = resName;
        this.resIcon = resIcon;
        this.clz = clz;
    }

}